import service from '@/utils/request';

// 根据类型获取文本
export function privacyPolicy(data) {
  return service({
    url: `/api/system/setting/getAppStaticTextByType`,
    method: 'post',
    data,
  });
}

// 设置文件修改
export function setFileModify(data) {
  return service({
    url: `/api/system/setting/modifyAppStaticText`,
    method: 'post',
    data,
  });
}

// 遇到问题列表
export function problemList(data) {
  return service({
    url: `/api/system/setting/findQwenPage`,
    method: 'post',
    data,
  });
}

// 遇到问题修改
export function problemModify(data) {
  return service({
    url: `/api/system/setting/modifyQwen`,
    method: 'post',
    data,
  });
}

// 遇到问题删除
export function problemDelete(id) {
  return service({
    url: `/api/system/setting/deleteAppStaticText?appStaticTextId=${id}`,
    method: 'get',
  });
}

// 通知消息模板
export function noticeList(data) {
  return service({
    url: `/api/system/setting/pageInform`,
    method: 'post',
    data,
  });
}

// 通知消息模板修改
export function noticeModify(data) {
  return service({
    url: `/api/system/setting/modifyInform`,
    method: 'post',
    data,
  });
}

// 通知消息模板下拉
export function noticeSelect(data) {
  return service({
    url: `/api/system/inform/type/informTypeList`,
    method: 'get',
    data,
  });
}
